package com.powernode.money.mapper;

import com.powernode.money.model.BidInfo;
import com.powernode.money.vo.TopLoanInfo;
import com.powernode.money.vo.TopRank;

import java.util.List;

public interface BidInfoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(BidInfo record);

    int insertSelective(BidInfo record);

    BidInfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(BidInfo record);

    int updateByPrimaryKey(BidInfo record);

    double selectAllBidMoney();

    List<TopRank> selectTopRank(int num);

    List<TopLoanInfo> selectByLoanId(String loanId);

    List<BidInfo> selectBidInfoByLoanId(Integer loanId);

    List<TopLoanInfo> selectByUid(String uid);
}